From 577f74832a1122c16bb2c747eab5acc07dbc7410 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Mon, 26 Sep 2022 23:13:47 -0700 Subject: hide toast on payment received --- src/routes/invoice/[id]/+layout.server.js | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 src/routes/invoice/[id]/+layout.server.js (limited to 'src/routes/invoice/[id]/+layout.server.js') diff --git a/src/routes/invoice/[id]/+layout.server.js b/src/routes/invoice/[id]/+layout.server.js new file mode 100644 index 00000000..e123c7d7 --- /dev/null +++ b/src/routes/invoice/[id]/+layout.server.js @@ -0,0 +1,6 @@ +import { get } from '$lib/utils'; + +export async function load({ params }) { + let { id } = params; + return { id, invoice: await get(`/invoice?uuid=${id}`) }; +} -- cgit v1.2.3